import {get,post} from "@/util/http.js"

export const tabelListApi=()=>{
    return get('/api/tabel/list')
}
export const userListApi=({page,name},size=10)=>{
    return get(`/api/user/list?page=${page}&size=${size}&name=${name}`)
}

export const addUserApi=(formData)=>{
    return post('/api/user/add',formData)
}

export const editUserApi=(formData)=>{
    return post('/api/user/edit',formData)
}

export const delUserApi=(id)=>{
    return get(`/api/user/del?id=${id}`)
}